using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._FromRaster
{
    /// <summary>
    /// <para>Raster to Point</para>
    /// <para>Converts a raster dataset to point features.</para>
    /// <para>将栅格数据集转换为点要素。</para>
    /// </summary>    
    [DisplayName("Raster to Point")]
    public class RasterToPoint : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RasterToPoint()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster dataset.</para>
        ///   <para>The raster can be integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格数据集。</para>
        ///   <para>栅格可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_point_features">
        /// <para>Output point features</para>
        /// <para>The output feature class that will contain the converted points.</para>
        /// <para>将包含转换点的输出要素类。</para>
        /// </param>
        public RasterToPoint(object _in_raster, object _out_point_features)
        {
            this._in_raster = _in_raster;
            this._out_point_features = _out_point_features;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Raster to Point";

        public override string CallName => "conversion.RasterToPoint";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "maintainSpatialIndex", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "scratchWorkspace", "snapRaster", "workspace"];

        public override object[] ParameterInfo => [_in_raster, _out_point_features, _raster_field];

        /// <summary>
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster dataset.</para>
        ///   <para>The raster can be integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格数据集。</para>
        ///   <para>栅格可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Output point features</para>
        /// <para>The output feature class that will contain the converted points.</para>
        /// <para>将包含转换点的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output point features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_point_features { get; set; }


        /// <summary>
        /// <para>Field</para>
        /// <para><xdoc>
        ///   <para>The field to assign values from the cells in the input raster to the points in the output dataset.</para>
        ///   <para>It can be an integer, floating point, or string field.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>用于将输入栅格中的像元中的值分配给输出数据集中的点的字段。</para>
        ///   <para>它可以是整数、浮点或字符串字段。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _raster_field { get; set; } = null;


        public RasterToPoint SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, bool? maintainSpatialIndex = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, object scratchWorkspace = null, object snapRaster = null, object workspace = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, maintainSpatialIndex: maintainSpatialIndex, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, workspace: workspace);
            return this;
        }

    }

}